import { login, info, list, add, del, update, updateMySelf, logout } from '../../controller/admin/user'
export default async router => {
  router.post('/user/login', login)
  router.get('/user/info', info)
  router.post('/user/list', list)
  router.post('/user/add', add)
  router.get('/user/del', del)
  router.post('/user/update', update)
  router.patch('/user/update/:id', updateMySelf)
  router.post('/user/logout', logout)
}
